/**
 * Created by liguangsong on 16/8/1.
 */
export const SELECT_TAB = "SELECT_TAB";
export const SEARCH_CHANGE = "SSEARCH_CHANGE";
export const CLICK_ARROW = 'CLICK_ARROW';
export const REFRESH_INDEX = "REFRESH_INDEX";
export const SELECT_VISITOR = "SELECT_VISITOR";
export const SELECT_HOME = "SELECT_HOME";
export const SELECT_CONFERENCE = "SELECT_CONFERENCE";
export const TOUCH_MOVE = 'TOUCH_MOVE';
export const TOUCH_CANCEL = 'TOUCH_CANCEL';
export const CLEAN_FILTER = 'CLEAN>FILTER';

export function selectVisitor() {
    return {
        type: SELECT_VISITOR
    }
}

export function selectHome () {
    return {
        type: SELECT_HOME
    }
}

export function selectTab(tab) {
    return {
        type: SELECT_TAB,
        tab
    }
}

export function searchChange(filter) {
    return {
        type: SEARCH_CHANGE,
        filter
    }
}

export function cleanFilter() {
    return {
        type: CLEAN_FILTER
    }
}

export function clickArrow(arrow) {
    return {
        type: CLICK_ARROW,
        arrow
    }
}

export function refreshIndex() {
    return {
        type: REFRESH_INDEX
    }
}

export function selectConference(text) {
    return {
        type: SELECT_CONFERENCE,
        text
    }
}

export function touchMove() {
    return {
        type: TOUCH_MOVE
    }
}

export function touchCancel() {
    return {
        type: TOUCH_CANCEL
    }
}